package com.boxedinsoftware.tts.callerID;

import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class TTSservice extends Service {
	
	
	private static final String TAG = "Betamax SMS";
	private static int count = 1;
	SharedPreferences preferences;
	
	String number;
	String text;

	@Override
	public void onCreate() {
		//Toast.makeText(this, "My Service Created", Toast.LENGTH_LONG).show();
		Log.d(TAG, "Service Created");
		
		
	}

	@Override
	public void onDestroy() {
		//Toast.makeText(this, "My Service Stopped", Toast.LENGTH_LONG).show();
		Log.d(TAG, "Service Stopped");
		
	}
	
	@Override
	public void onStart(Intent intent, int startid) {
		Bundle bundle = intent.getExtras();
		number = bundle.getString("number");
		Toast.makeText(this, number, Toast.LENGTH_LONG).show();
	}

	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}
	
}